package com.ms.mall.api;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.openfeign.EnableFeignClients;

/**
 * basePackages 制定Fegin接口的路径
 */
@EnableFeignClients(basePackages = "com.ms.mall.api.fegin")
@SpringBootApplication
@EnableDiscoveryClient
@RefreshScope//动态加载配置文件信息
public class MallApiApplication {

    public static void main(String[] args) {
        SpringApplication.run(MallApiApplication.class, args);
    }

}
